Convert Double to Integer in Java